Fixed copying of scripts

The documented way didn't work for me.