Apparently we must cd into rubygems before running setup.rb.