Fix config script for filenames with spaces