Fixed bug specifying log file path as command line argument

This PR fixes a bug where the log file path was ignored when supplied as a command line argument (it only worked when specified in the config file).