Fix issue #9: trailing '/' in exclude causes failure of option