DocumentsUI: Update the way dirs/files are handled

  This fixes issue http://bugs.matricom.net/issues/103

Signed-off-by: KhasMek <Boushh@gmail.com>