Detect project name by bower.json or package.json