Fix use without a package.json

Closes #16. Thanks @substack for finding it.