Simplify test and setting `<lastmod>`