switched back to regex for checking ruby version