Hi,
You can use any version you like. You just need to tell ant which version you are going to use. This can be done by making changes in build.xml and build.properties.
If you dont want all the stuff that is installed by running install.demo then you can separtely call the targets defined in build.xml. or you can remove those targets from build file.