made shell script do a replacement and full clone from template