rose_prune work: support glob by task name

Close #1254.