fix error if bower.json is hidden file