Fix build_dirs.sh CONFIG loading
Fix CONFIG loading in rest of scripts