rename dir to __dir to improve zsh compatiblity, fix #2322