Fixed logfile path if script is run from a different working directory.