Break out path resolving and file matching from tab key handler.