remove trailing dir sapce by quoting