chore(install) Make installation more automated

This is just like #361, but submitted to the right branch.