Update genpolicy tool: create policy folder if not exists