Fix script issue for "InternalsVisibleTo".
Minor optimization for build script.