Fixed issue #7: handling of relative paths
Fixed case where path has no parent in Path.GetDirectoryName
Merge pull request #8 from thomaslevesque/issue7

Fixed issue #7: handling of relative paths