On the use of rootfinding ODE software for the solution of a common problem in nonlinear dynamical systems