Generator.get_files backwards compatibility for 1 path

This should prevent outdated plugins with generators from failing.
Also fixes #1382.