Improve the performance by auto check if bower and karma-cli is already installed.

Also, removing resolveBower, resolveNpm, resolveKarmaTapReporter args and always run bower install and npm install. This will not affect the performance because they will not reinstall the already installed packages.