Make s3_init linter adapter work in abscense of git (#77466)
Summary: PYTORCH_ROOT is just 3 folders above `s3_init.__file__`
Test Plan: CI
Differential Revision: D36389775
Pull Request resolved: https://github.com/pytorch/pytorch/pull/77466
Approved by: https://github.com/suo