Fix bug where a trailing space in tab_completed name kills script