fix bug that file or directory starts with '.' should not be scanned