env: Move get/set_default_env() to env.h