LILY-2505: Only build dist when dist profile is active (but don't exclude the module when dist is not active)