Stability improvement with various ways of entering the directory names.