use xargs to remove pid files

When there are many files, those files are not able to be deleted by
rm command directly.