fix creation of parent directories in build-projects.sh