diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 8a3edcbdd9d571e1a38179389599b6b1d843d38d..7942bab9e602b9fd7bd067933322bc2a82eeed0c 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -37,11 +37,11 @@ check_defines () {
 
 	cd ${tempdir}/
 	test_tempdir=$(pwd -P)
-	cd -
+	cd ${DIR}/
 
 	if [ ! "x${tempdir}" = "x${test_tempdir}" ] ; then
 		tempdir="${test_tempdir}"
-		echo "tempdir: is really: [${test_tempdir}]"
+		echo "Log: tempdir is really: [${test_tempdir}]"
 	fi
 
 	if [ ! "${export_filename}" ] ; then