Split the bundler logic out into install_gems()
DRYed up configure logic with a local opt_dir variable.