update Gemfile source, and fix not to include Gemfile.lock
add tests and fix version detection for Opera/Mac