optional registry detection

WARNING WARNING DANGER DANGER DANGER WARNING WILL ROBINSON !!!!

!!!!

THIS MAY NOT COVER EVERY POSSIBLE CORNER CASE IT MAY FAIL IN SOME PLACES WHERE YOU EXPECT IT TO WORK.

but then...  that is pretty much true of any software.  This is probably the best we can do.