Add leading comment for the regexp_filter_match()
Distinguish files and dirs in filename filtering

By appending a slash to names of directories.
Don't strip trailing slash on zf command

Otherwise directory filtering will be impossible.
Move regexp_filter_match() below calls to it
Merge branch 'filter-distinguish-dirs'