doc: document `process.env` better

Fixes #6424.