fix escaping problems for paths containing single quotes. fixes #144