Fixes dirname on Linux systems
Merge pull request #168 from jverdeyen/hotfix/dirname

Fixes dirname on Linux systems