Use tmp/ for registry file