Added support for multiple proceses

the old regex does not work for multiple processes. Also, the package name checks is better with find.