Allow with_first_files to search relative to templates and vars in roles

Fixes #8879