fixes for source filenames with spaces and support for forward slashes in filenames