Bash Script Check If Array Contains String In C