fix bug: E739: Cannot create directory: foo/bar/, but the directory was created just fine.
Merge pull request #17 from houzy/upstream

fix bug: E739: Cannot create directory: foo/bar/