Expand tilde before openning log file.

In the configured path for the log file, the tilde is not expanded so that parsing `~/path/to/config` will cause polipo to complain "Couldn't open log file ~/path/to/config: No such file or directory".