Simplify detecting whether a process is running