Fallback to module installs if package.json is missing in a local folder install

Fixes #6117
Oh, hah, yes, let me flop those.