Fix for dir blacklisting with relative paths

The blacklist check was being done on the full path to each directory
rather than the relative path, so only glob expressions which started
with a '*' were matching.

Changed to using the relative path when doing the blacklisting check,
which makes this work properly.