I figured it out myself. The only way seems to be by brute force.
$$g(x)=\frac{1}{\phi\left(\frac{x}{2}\right)^2
\phi\left(\frac{x+1}{2}\right)^2}\left[\phi\left(\frac{x}{2}\right) \phi\left(\frac{x+1}{2}\right) \left(\frac{1}{4}
\phi\left(\frac{x+1}{2}\right) \phi''\left(\frac{x}{2}\right)+\frac{1}{4}
\phi\left(\frac{x}{2}\right) \phi''\left(\frac{x+1}{2}\right)+\frac{1}{2}
\phi'\left(\frac{x}{2}\right) \phi'\left(\frac{x+1}{2}\right)\right)-\left(\frac{1}{2}
\phi\left(\frac{x+1}{2}\right) \phi'\left(\frac{x}{2}\right)+\frac{1}{2}
\phi\left(\frac{x}{2}\right)
\phi'\left(\frac{x+1}{2}\right)\right)^2\right]$$
And this simplifies to
$$g(x)=\frac{1}{4}
\left(\frac{f''\left(\frac{x}{2}\right)}{f\left(\frac{x}{2}\right)}-\frac{f'\left(
\frac{x}{2}\right)^2}{f\left(\frac{x}{2}\right)^2} + \frac{f\left(\frac{x+1}{2}\right)
f''\left(\frac{x+1}{2}\right)-f'\left(\frac{x+1}{2}\right)^2}{f\left(\frac{x+1}{2}
\right)^2}\right) = \frac{1}{4}\left[g\left(
\frac{x}{2}\right)+g\left(
\frac{x+1}{2}\right)\right].
$$
Would be interested in knowing if there were a faster and simpler way though...