Update patcher to work with groovy. Minor bugfix