Escape directory names in shell commands.

Addresses #124. I think I found all of them