core: Log full backtrace on module build error