The usage of type='path' includes the expanduser call itself. This patch removes its duplicate usage. Related to #12263