fixes dbashford/mimosa#379, better handling for packagejson main