Fix up code for PR 11 based on comments.

https://github.com/hpcugent/hanythingondemand/pull/11

A lot of this is whitespace and authorship comments, but we also now raise on
directory creation if there is a problem. Previously we assumed OSError was due
to the directories already existing. Now we check for errno.EEXIST.