Fix grails plugin

Fix problem with "basename" command error "extra operand" (do not work with array)