testFindKinematicPath: only compare to mex if mex file is available

Fixes #537.