Feature/improve find and scan code

Part of fixing #856 and #858. I'm stilling missing the follow config option, but rest should be more or less done, or at least ready for review.
The check for `/.` is a sneaky way to exclude both hidden files and directories + their content. Main reason for it is just because that's what it used to do. And more importantly that I know the scanner isn't fond of a bunch of the hidden files on my own system.