Fix bad copy-paste
Fix bad shell wrapping on longer commands
Extract getting ruby version into a function
Fix not keeping the current directory on new tab