change removeMaxRotatedLogs to not rely on time.Before() working
correctly with large time values