added environment detection to log file, creates absolute paths now