Fix bug when emsg config file path contain space