Add recursive dir creation and proper os x support, for once