fix freebsd ctest for version detection