Some hipify script cleanups (#27375)
Summary:
continue https://github.com/pytorch/pytorch/issues/26363
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27375
Differential Revision: D17764992
Pulled By: bddppq
fbshipit-source-id: ecc06521179677efcedb1d58ceda63df7d63627e