Use the same order Rails does to check environment - for #94