[inductor] Get compiler from environment variable if exists (#94926)
Fixes an issue where the default `g++` compiler does not specify the right compiler to use (or does not exist).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94926
Approved by: https://github.com/ngimel