correct check cmd env