Fix create temp dir for regenix template engine