Adds condition check on Ruby version.