Ensure the BUILD and CACHE dirs are created