Changed debug structure to use a sub instead of printing directly.
Should not impact performance negatively and allows for cleaner code.
Added color coding to debug messages based on level.
Ran in to more edge cases with oddly named directories. Fixed what I
could, but there are going to be some cases that are just too extreme to
catch. In those cases the script will not scan the directory but report
that something is not right at the end. This will help eliminate
recursion errors.

Results against baseline:
43a44,45
> wordpress                 3.5.1
/home/versionfinder/zzz_edge_cases/*Tab*Test*two/WordPress-3.5.1
> wordpress                 3.5.1
/home/versionfinder/zzz_edge_cases/\tTab\tTest/WordPress-3.5.1
52a55,61
> 
> ==== Glob error in the following folders ====
> /home/versionfinder/zzz_edge_cases/Odd	\Test	
> Three
> /home/versionfinder/zzz_edge_cases/Odd	\Test	\One
> /home/versionfinder/zzz_edge_cases/Odd	\Test	Two
> These folders were not scanned due to possible recursion errors.