set rails3 mode first for ci servers

hopefully this change will make sure the env loads correctly