Don't crash if not sandboxed
Use the project's code signing options
Pass a correct GEM_PATH to Ruby