Fixed typo
Much safer and solid usage of reg.exe
Fixed breaking bugs