fixed working directory issue when module is downloaded via npm