use AHN_PLATFORM_ENVIRONMENT as default when AHN_ENV is not present

Not sure it's an issue, but this made sens to me. What do you guys think about it? 
Space missing to the left of {.<br>Space missing inside }.