Fall back to ps in the profiler.

If the /proc filesystem doesn't exist we'll fall back to using the `ps` shell
command.