Changed the method for copying the template files

The subroutine was made more general so that the GW templates with
varying number of bnds to consider could be easily assimilated