Fix some problems in running grails in forked mode