Handle the logfile parammeter properly