Fix build_dirs.sh script.