Ping implemented with subprocess