Fix autocd for bash 3