build: use different grep strings for scanning package vs target metadata