BUG Updated download method

When downloading if unique directory is an empty string, the directory create
will fail. Additionally if an object was uploaded and has the same name as an
already created directory the specific file download will fail.
Merge pull request #32 from cloudnull/mkdirp

Fix for Issue 31