fix bug: ^M command not found when execute shell script.