Make shell scripts POSIX compliant

...by removing bashisms.

Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>