Fix health check command subprocess handling