Updated rails version check