Add ifelse Jinja function as found in CFEngine