use shopt direxpand on bash version >= 4