used `ls -1 dir/*.pid 2> /dev/null || true` instead of `find`