Save space by creating a standard function to read PID files.