path-utils: fnmatch: fix longest-suffix bug
shell: implement env #/##/%/%% pattern expansion