Resolve $HOME even if VM spits bogus new lines

Fixes issue #122