allow passing custom bower object
fix undefined 'bower'
Merge branch 'custom-bower' into devel