Add application_env/1 function.