__dirname is the path.dirname of __filename
Merge pull request #1 from pgilad/patch-1

__dirname is the path.dirname of __filename