Fix escaping in scripts