Combine IOError and OSError processing, Python 3.3

Works around bug introduced by Python 3.3 in PID file processing, keeps
comaptibility with Python 3.2.