fixed bug with files containing single-quotes