Fix getting the version for ant