Better archives detection in source.prepare()