Support OTP versions without application:get_env/3

I'm using R15B03 and this change was sufficient for snarl to start up and serve requests.

There may be other incompatibilities I have not found yet.