Support filenames with spaces

Stitching script now can handle directories and filenames with spaces in
them.