adding helper method to yield both temp dirs and the files to avoid globbing the returned dirs
using a default title if no title could be extracted