fix error message for --file option when file does not exist