Add test for ignoring a dot at the beginning of file name.
Improve MAXPATHLEN testing.
Improve detection of characters ignored at the end of file name.