Use require.resolve() to detect where the executable of typedoc is located.