We tried to make this change recently and it broke a bunch of other people, as the timing of when to expand it made a difference depending on the current user
glenjamin 2021-04-21T06:47:26.008200Z
There should be a support article about it, but the workaround is to use eval “cd $dir”