Switch to tabs for standard compliance
Light refactor
Eliminate trailing slashes from paths before examining