Exit immediately if a local package.json is found and used.

- Exit immediately if a local package.json is found and used.
- Better error checking if `package.json` is not valid or does not exist.