Change way of checking rails env.