scripts: Fix bashisms in igep-tools.

The igep-tools don't work on linux distributions using POSIX compliant shell
scripts like dash. This patch fixes all current problems in the scripts
reported by checkbashisms utility.

Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>