Small optimization to only load ruby once

This allows the ruby hook to load the installer directly