frontend: minor refactoring in make template code

http://www.ovirt.org/index.php?title=Features/Template_Versions

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1037478
Change-Id: I059662024475acb184046e138a31fc1931642de6
Signed-off-by: Arik Hadas <ahadas@redhat.com>