update dist task to work with more versions of ant