Add linux support and better error checking for chruby