fix escape problem in sh template