fixed issue with pushd'ing to ~