Bug 987 fix sed and 7z for paths with spaces

Fixes invocations of sed and 7z by adding single quotes to prevent failure on paths containing spaces. Also adds a couple of parser temporary output files to the .gitignore. Tested on Windows 8 and OS X 10.9.

Re-created this pull request after rebasing the branch.