improve error on invalid vars file (if its a list instead of a dict)