creating scripts folder before writing instrumented file