use egrep, add Go env, fix RUBYOPT