update code analyzer script to handle splitted torch libraries (#30864)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30864
Change it to handle all archive files under install folder.
Test Plan:
```
ANALYZE_TEST=1 CHECK_RESULT=1 tools/code_analyzer/build.sh
ANALYZE_TORCH=1 tools/code_analyzer/build.sh
```
Differential Revision: D18850317
Pulled By: ljk53
fbshipit-source-id: 7c57ae16c82b6ded53aa7df385f3b6074190fc04