Find the last occurrence of '@' in the host string.  Fixes #443