make Devise gem version more flexible