fixing error that prevented the file to generate with a global install in npm