Update build system to handle spaces in filenames (thanks to @FichteFoll!)