CMFileManager: Correct logic of string generation

Add the code for previously uncovered case - 1 folder and 1 file. While
there remove unnecessary '=' from some comparisons.

Change-Id: I9e4bd03eebcc52c055db6355483b921a832e963b