Updat ruby logic

Found rubygems wasn't always installed depending on the ruby version specified. I modified the default recipe to add some logic around the ruby versions 1.8 and 1.9.1 due to package names in the default apt repos.