Added set-env to compile file rather than individual steps