Check that files are actually a file

If the glob for the src returns a directory then the file mapping files with EISDIR.