Added env dir output to compile script and added --stacktrace