gcore: Remove bashisms and use POSIX sh - Switch script shebang to /bin/sh - Remove unnecessary `function` keywords - Replace bash arrays with simple scalar variables - Use $(uname -s) instead of bash specific $OSINFO Approved-By: Simon Marchi <simon.marchi@efficios.com>