Is this really necessary? The load path should be the responsibility of the caller. If you're installing as a gem, rubygems will already be loaded when you invoke the binstub.