Fix legacy Ubuntu if-check

I know that this seems a bit redundant, checking for legacy Ubuntu twice, but we have to because if we don't, it would be impossible to have both options be enabled.