Update the password check for Ruby 1.9+