Build fails when using ant directly