Fix race condition error when installing to long paths, path folders would be deleted and recreated in time for installing files. Also support bower.json and component.json files (bower.json taking precedence)