Fixed regex for getting role out of hostname