Improved command line and handling of bad file paths