Fix dealing with filenames containing spaces

and missing GestureRange require
Merge pull request #467 from thotypous/master

Fix dealing with filenames containing spaces