Fix issue #172, list command always return an unnamed dir on an empty directory