fixed bug with output logfile location