Correctly upgrade pip depending on ubuntu version.