Expand the path to save log

Previously, saving to '~/foo.txt' would create a '~'
folder in pwd which wasn't intuitive. Now, the '~' is
expanded to the users $HOME dir.