fixing an infinite loop if no config file is present
0.4.1 patching critical issue when no config file is present