Fix handling of config values
Merge pull request #8 from PaulSD/config_fix

Fix handling of config values