build: fix --with-regedit to properly honour the yes/no/auto scheme