Add allow_prerelease option to gems

Some versions of some packages can be only installed with the --prerelease flag of gem install. Support this option.