* fixed incorrect dirname() result
Merge pull request #71 from POPSuL/broken-dirname

* fixed incorrect dirname() result