fix directory completions within e.g. 'setwd'