Compute reg/setx paths once