Fixed listing directories without / on end