Fix rake task specs on windows.

- Skip specs that rely on shell escaping (not available on windows).
- On windows we wrap all args in single quotes, so change our
  expectations to allow for that.