added nonull flag for minimatch comparison