improved example dir creation in build script