Replaced port check with ping location check. Corrected PID file location