Fix configuration parser

Added global{} directive in config file to that we can properly define
log_file and other global settings.