[better_engineering][multiplatform] Replace host_info() check with separate cmd and cmd_exe commands for protos (#98426)
Summary: Same as title
Test Plan: CI
Differential Revision: D44670281
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98426
Approved by: https://github.com/ezyang