Added minor fixes to Az DevOps Build Logic (#59016)
Summary:
This PR also adds a a few minor logic changes to the custom PyTorch PR tests logic.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/59016
Reviewed By: mrshenli
Differential Revision: D28732437
Pulled By: malfet
fbshipit-source-id: 14b7ed837209d77e0e175d92959aeb0f086e6737