fixing path issues

using __dirname
Merge pull request #3 from stockholmux/master

Fix paths by using __dirname. @stockholmux