simplify rails version checks