build.sh: ensure we create the needed directories.