Do you run script from command line of by clicking onto you browser explorer.
Try to go onto command line, then into build directory.
check htdocs dir is at same level than build (and not inside).
Try to go onto command line, then into build directory.
check htdocs dir is at same level than build (and not inside).