Spec fixes for Windows

  - Switch pwd environment variable depending on platform.
  - Hardcode the temp file name instead of using described_class: Windows doesn't like ':' in paths.