Improve checks for appdata-validate and desktop-file-validate