Prevent renaming of bower.json/component.json to index.json, fixes #674.