refactoring HostResolver: moving check from hostRpmBuilder into HostResolver.resolve