Turn setup_linux_system_environment into command
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/26162
Test Plan: Imported from OSS
Differential Revision: D17366537
Pulled By: pietern
fbshipit-source-id: 98413daa344812f06578c3373d8516292d2f21f5