terminal: Support ~ in cwd field of task definitions (#35097)

Closes #35022

Release Notes:

- Fixed `~` not being expanded correctly in `cwd` field of task
definitions.
985350f9e8Piotr Osiewicz committed on 7/25/2025, 3:39:50 PM· committed by GitHubparent0e9d955
1 file changedLine totals unavailable