better messages when path is not a file or a directory (when recursing)