ant: a more stringent test that compiles code

Ant had one of those nasty --version tests, so this makes it fall into line with the Leiningen and Maven tests that actually do something.