frontend: minor refactoring in make template code

Change-Id: I059662024475acb184046e138a31fc1931642de6
Signed-off-by: Arik Hadas <ahadas@redhat.com>