Corrections to directory command autocompletion