Replace unix style dir creation with ruby style

* In case you ever want to support non-unix systems
* Suggested by a comment, seemed like a good idea