Fixed case when either no input nor output file name is given, but the file should be saved.