Improved escaping on directory completion