Fix path handling exceptions resulting from wrong module use
Merge pull request #2 from ahacking/master

Fix path handling exceptions resulting from wrong module use