Fix bug from expand_tilde

6 jobs for autocomplete
Status Name Job ID Coverage
  Test
canceled debian_stretch_x86_64_deb #27727
debian stretch x86_64

canceled osx_10.11_x86_64_dmg #27729
osx v10.11 dmg

canceled osx_10.8_x86_64_dmg #27730
osx v10.8 dmg

canceled raspbian_stretch_armv7l_deb #27732
raspbian arm stretch

canceled ubuntu_16.04_x86_64_deb #27728
ubuntu v16.04 x86_64

canceled windows_i386_innosetup #27731
windows i386