Downgraded groovy version and fix for MacOS X.
Merge pull request #19 from jtalaga/master

Downgraded groovy and fix for MacOS X.