fix template markup error for %hostname%