Fixes #4583 enforce that vars_files is a list