added startup function to check logfile dirs