toolchain: Add workaround for ubuntu to ensure clean one-shot build