Reworked up-to-date checking to avoid dependency on Ant Contrib.