Snatched rvm func from rubycut's fish-inwater github