Fix error if a directory exists in the data directory
Merge pull request #9 from mitsuruog/master

Fix error if a directory exists in the data directory