KAFKA-1732 DumpLogSegments tool fails when path has a '.'; reviewed by Neha Narkhede