Handle tilde in `Path.expand/1,2` properly
Merge pull request #2611 from lexmag/tilde-in-path

Handle tilde in `Path.expand/1,2` properly