Update regcheck.cs

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