Support OTP versions without application:get_env/3