Now with added escaping

Correctly escape directory and file paths for those people who use meta
characters in paths (like spaces).

Add a .gitignore.