Added name-match and latest-only option

Should fix issues #129, #139 and #158
It really makes sense if you just want to check for the existence of a flag