fix log file retenton script