[IMP] Imporve Build._get_domain to manage subdomain to port redirection