added shebang to generated copy script