Escape filenames before passing them to grep

This fixes a bug where the Grep check would not properly run against filenames containing spaces.