Fixed issues with determining if server is running

Changed how process spawning works