build.xml now creates a dist directory if it does not exist

* build now creates a dist directory if it does not exist (fixes build failure on a freshly cloned repo)
* gitignore ignores dist directory