Update to Groovy 2.4.0-beta-4 and make it work by calling System.out.println()

* Update to Groovy 2.4.0-beta-4 
* Work around exception by calling System.out.println() rather than println()
* Add build dirs to .gitignore