moved log file creation so it doesn't appear for --help and --version