[processing] fix grass raster export for r.horizon and r.composite modules

The raster export logic needs to be changed in order to cope with the r.horizon and r.composite modules.