limit special handling of files named "." and ".."

A file named "." or ".." shall only be specially handled if it is a directory
and is among the first two directory entries. Otherwise, renaming a file to
"." or ".." could hide the file from TSK. Fixes CVE-2012-5619.