Update error log handling

Scripts may import and call geterrlog to get the path to error.log
(desktop). Only works on Windows and UNIX based operating systems.