Removed output file for matlab, automatically creating log path from source path.
Only creating path for log file if we're in batch mode.