Make sourceFilesInDir able to cope with  no files or filenames with spaces