a couple minor fixes.
Fix for Ticket #636 (windows ini file loading inefficient.