Bash Split String Into Array And Get Last Element In A List