Added shell_opts to reduce duplicate commands.
Split the chruby-exec command into smaller pieces.