Create selfcopy script