From http://stackoverflow.com/questions/3162385/how-to-split-a-string-in-shell-and-get-the-last-field