Tweaks to run_vests script
Add checks for locally static attribute references