Fix grails plugin

Fix problem with "basename" command error "extra operand" (do not work with array)
Merge pull request #1671 from lifinsky/master

Fix grails plugin