return inode/directory if we are looking at a folder (ie don't start looking at potential file extensions)

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>