Only open log file if actually logging to it
Fix get_path_for_real (add terminator to path)
Modify output