Use settings for ruby environment and bundler use sudo so they can be configured reliably.