Preliminary Windows support

Use the $HOME variable rather than the tilde. Works on my machine!