add test for workdir env vars and add docs Upstream-commit: 40cad37f0a4f182150476a577196af29da142fc1 Component: engine