Fixed Recursive scanning errors and modified Wildcard handling with -r option.
Revert "Fixed Recursive scanning errors and modified Wildcard handling with -r option."

This reverts commit 4747a41e7d68434ab200e9dd0e4eaa8173034567.
[bugfix] clean commit of: Fixed Recursive scanning errors and modified Wildcard handling with -r option.