Improves Resources to accept empty string in the excludePath to exclude only the full match