Mitigate risk of a race condition by creating a new directory.
Properly quote variables so that they don't undergo wordsplitting
Don't interpret backslash escape sequences in read
Properly quote $f, it is possible that it contains characters that would cause it to undergo changes at wordsplitting
Make file write test exit slightly more readable
Merge pull request #1 from cdown/cdown

Various syntax fixes