Fix error message when project name is a file
Fix error message when project name is a file

If the path is a file, do not fail with ENOTDIR, but return
the error message instead.

Also remove superfluous "validation" for name.

fbshipit-source-id: 5a9810c

exponentjs/xdl,exponentjs/xdl,exponentjs/xdl