Script failed to open template file