[sanitizer] Fix GLOB_NOMATCH behaviour and refactor the interceptor a bit.