Pack script modification auto create dir