ignore non regular files while scanning directories recursively