Zhang Jing: Copy tmp/result.xml to the result folder
Zhang Jing: handle the case that running mode is None