Allow underscores in remote host name

The regex was cutting off everything following and including the underscore in my host name.