fix(task): path handling for Windows

Changes to handling of separators to support Windows.