Windows: Unify workdir handling Upstream-commit: c3b660b112804dfb1752efc1368a104897c7b884 Component: engine