diff --git a/distro/scripts/adl_cots.sh b/distro/scripts/adl_cots.sh
index ad2be0a2a2ebce03d7627c61ebb7a1b71c9aa715..79cf45ef143d9ea7571d6015ad04dc9e33881f23 100755
--- a/distro/scripts/adl_cots.sh
+++ b/distro/scripts/adl_cots.sh
@@ -480,10 +480,11 @@ nagg(){
     tar_name=nagg-1.6.2.tar.gz  && \
     rm -fr ${BUILD}/nagg*  && \
     install_the_source ${tar_name}  && \
-    cd nagg-1.6.2   && \ 
-    # Build nagg
+    ls && \
+    which patch && \
+    cd nagg-1.6.2  && \
     patch -p1 <  ${COTS_HOME}/scripts/revised_nagg.patch   && \
-    ./configure --with-hlregion=${USER_COTS_PATH}/lib   && \
+    ./configure  --prefix=${USER_COTS_PATH} --with-hlregion=${USER_COTS_PATH}/lib   && \
     make   && \
     make install   && \ 
     cp nagg/bin/nagg ${USER_COTS_PATH}/bin   && \