Fixed framework build script to preserve directories structure