Add prefix path handling
Merge pull request #1 from hadzimme/handle_prefix_path

Add prefix path handling

Patch by Hajime Wakahara. Thanks!!!