Bash Split String Into Array And Get Last Element In Array