Fix bug in bash completion and sudo directory awareness.