ubuntu: cherrypick wheezy fix for create_template_list.sh