added buildDir.sh test script