Expand the path to save log

Previously, saving to '~/foo.txt' would break. Now,
the '~' is expanded to the users $HOME dir.