ngchmGetEnv function

Get the ngchm environment (for debugging only).