fix prefixing in generated dependencies for generated package.json files
hasClass no longer takes more than one class to look for. ref #7