Updated escaping on sh file creation