Changed sageRunning to check for pid instead of grep