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