Fixing some grails functions in terminal window