fix check for ruby on linux