fix stacktrace

if mdoc --stacktrace is called, stacktrace should be printed,
otherwise it hsould not be printed