Updated build_framework script to create output folder if required.