Make Application::ReadPidFile work on Windows.

Refs #5788