move gem installation around

I suspect that an ordering issue is the root cause of the current
wierdness. Basically, the bootstrap script (which installs xcode)
needs to run before any gem installs can run, because these gems have c
extensions