updated files.php

added checks so it'll only return items that have a newer version