Extract rbenv shim path construction into its own method.