Added a check on 'list' command when the file doesn't exist.