Update regcheck.cs

Fix in checking registry, was not compatible w/ 32b systems.