Fixed copying of scripts