Merge pull request #4 from OverZealous/master

Replaced path.basename with path.dirname to fix issue #3.
Adding test to verify Issue #3 is fixed
Bumping version