I am trying to understand the solution to a problem in Altland & Simons, chapter 4, p. 183. As a demonstration of the finite temperature path integral, the problem asks to calculate the partition function of a single harmonic oscillator. The coherent state path integral is $$ \mathcal{Z} = \int D(\overline{\phi},\phi) \exp \Big[ -\int_0^{\beta} d\tau \, \overline{\phi} (\partial_{\tau} + \omega) \phi \Big] \sim [ \det(\partial_{\tau} + \omega) ]^{-1} \tag{4.53}$$ where the $\sim$ follows from simply treating the path integral as if it were an ordinary Gaussian integral. Using the fact that $\phi(\tau)$ must be periodic, we can expand $\phi$ in a Fourier series and find that the eigenvalues of $\tau$ are $\omega_n = 2\pi n / \beta$, from which we obtain the expression $$ \mathcal{Z} \sim \prod_{\omega_n} (-i \omega_n + \omega)^{-1} = \prod_{n = 1}^{\infty} \Big[ \Big( \frac{2\pi n}{\beta} \Big)^2 + \omega^2 \Big]^{-1}. $$ We obtain the latter expression by pairing each $n$th term with the $-n$th term.
Now, here comes the question: to compute this infinite product, Altland & Simons perform the following steps: $$ \prod_{n = 1}^{\infty} \Big[ \Big( \frac{2\pi n}{\beta} \Big)^2 + \omega^2 \Big]^{-1} \sim \prod_{n = 1}^{\infty} \Big[ 1 + \Big( \frac{\beta \omega}{2\pi n} \Big)^2 \Big]^{-1} \sim \frac{1}{\sinh(\beta \omega / 2)}. $$ It seems to me that to get from the first to the second expression, they are multiplying and dividing by $\prod_{n = 1}^{\infty} (\beta / 2\pi n)^2 $, so as to use the formula $x/ \sin x = \prod_{n = 1}^{\infty} (1-x^2 / (\pi n)^2 )^{-1} $. This seems completely unjustified to me -- not only are you dropping temperature dependence in the $\sim$, but you're effectively multiplying and dividing by zero! Not to mention that the final $\sim$ conveniently ignores a factor of $\beta$ in the numerator in order to get the correct final answer.
Is there something I'm missing, or is this calculation completely bogus? And what is the correct means to get the right answer?