Fixing registry call under *nix