Make shell scripts POSIX compliant

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