Better escaping of the exec arguments