$L = f(v) + g(x)$. (eq 1)
$\frac{d}{dt} \frac{\partial f(v)}{\partial v} = \frac{\partial g}{\partial x}$ (eq 2)
now, if we got homogeneity, eq 2 must give the same result when we change $x$. if $g(x)$ is linear in $x$, eq 2 gives the same result. if $g(x)$ is non-linear, it changes, so you show that g(x) must be linear to achieve homogeneity