try-catch mkdirSync

Closes #6