Added rails version check