How to scan a bash script (or a list of scripts), and detect which variables were defined but never read?