Properly get workers pids when running on SunOS.

When getting worker pids on SunOS (OpenIndiana or any other Solaris derivative) the ps command does not support the arguments as on linux. So to be able to get the worker pids the command line arguments for ps need to be changed.