Fixes access to the build directory mounted into the container when UIDs don't match. For Docker, HOME is set in addition to get a more useful value than / and for consistency with Podman.