Fix log and pid files flags.