Use regCreateKey to be more robust when registry entry does not exist.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Merge pull request #11 from ezyang/master

Use regCreateKey to be more robust when registry entry does not exist.