Tweaked to install gems before precompiling assets