Merge pull request #246 from ChengXiangLi/fixConfigError

try auto fix improper config on shark client launch.
(cherry picked from commit 960ff2220154e421da6cfa7e47d2855ad67dd07c)

Signed-off-by: Reynold Xin <rxin@apache.org>