Improve directory completion to remove duplicate /