ensure that rubyroot if valid.