Revert "Fix a grep-itself bug when checking for GPU healthcheck (#97929)"
This reverts commit f40b2ed59c4d1aca36d42ed208cfa9356fbe672d.
Reverted https://github.com/pytorch/pytorch/pull/97929 on behalf of https://github.com/huydhn due to Rework to get rid of grep completely