Fixed Issue #1

Fixed Issue #1
Errors generating files when the_path==""