Account for commas at the end of app-name

The CF CLI lists multiple apps with comma separation. This change accounts for that scenario. It will also find app names at the beginning, middle, or end of the list.