Fix exclusion check

Fix exclusion check, was doing a wrong comparison on folder path, so the check never actually happened.