fixed recursion on non-directory-entries (FIFO, Dev, ..)