CD-2 correcting stage_remote.sh, template fix