support old productid.js format as well

Old format was json dump of a dict of
form:
        {'product-id-string': 'repo-id-string'}

while the new format the value is a list, like:
        {'product-id-string': ['repo-id-string']}

If the value in the dict is a string, we add it to
a list and return it, to match the new format.