Updated to grails 2.2.2 and fixed a minor change to how stagingDir variable is used.