New way of getting rails env