Fix the package.json auto detection