Fixed error message for invalid filenames

Tweaked the error message for when the filename argument specifies a non-existent file or directory.