Move shell script from template to file