[package] Support glob matching (#48633)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/48633
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D25236016
Pulled By: zdevito
fbshipit-source-id: 5eca7b7f344a6c2f6a047bfabdb4da8cdd0dc7ec