Expand tilde on Windows as well (fixes #289)