for issue #44 append __dirname