Writing log file in no_compile.sh