s3-libpidfile: fix check for running process.