More robust dev host detection and apply to choosing API endpoint