fixed errors generating files when the_path==''
Merge pull request #3 from fattredd/master

Fixed Issue #1