mkdirs create intermediate directories as required

When directory exits, change to this directory and create next directory in path. If trying to create a directory that exists as a file it will raise an exception '409 Conflict'
Merge pull request #3 from opensaucesystems/patch-1

mkdirs create intermediate directories as required