add rails version check via env variable to make tests work