Fix log file path

If script was run from the shortcut it created the log file in the `~` folder.
Fixed this by adding absolute path to the filename.