Fixed bug in local gr script

Change-Id: Ic6e1f8383b8617ddf1d5b3589482d5b2d74f03bf
Reviewed-on: https://iffwww.iff.kfa-juelich.de/review/47
Reviewed-by: Josef Heinen <j.heinen@fz-juelich.de>