create deep paths if they don't exist. fixes #54

what do ya think?
Can create tests if you like this.

P.S. looks like my editor did stuff with whitespace. can remove those changes if you're ok with the gist of this PR