```ruby
module Texas
  module Build
    module Task
      class PublishPDF < Base

        def master_file
          build.master_file
        end

        def build_path
          build.__path__
        end

        def dest_file
          build.dest_file
        end

        def run
          run_pdflatex
          copy_pdf_file_to_dest_dir
        end

        def copy_pdf_file_to_dest_dir
          tmp_file = File.join(build_path, "#{File.basename(master_file, '.tex')}.pdf")
          FileUtils.mkdir_p File.dirname(dest_file)
          FileUtils.copy tmp_file, dest_file
          verbose {
            file = File.join(build_path, "master.log")
            output = `grep "Output written on" #{file}`
            numbers = output.scan(/\((\d+?) pages\, (\d+?) bytes\)\./).flatten
            @page_count = numbers.first.to_i
            "Written PDF in #{dest_file.gsub(root, '')} (#{@page_count} pages)".green
          }
        end

        def run_pdflatex
          verbose { "Running pdflatex in #{build_path} ..." }
          Dir.chdir build_path
          `pdflatex #{File.basename(master_file)}`
          `pdflatex #{File.basename(master_file)}`
        end

      end
    end
  end
end
```

Use build.root instead of root in verbose output of Task::PublishPDF
user
```ruby
module Texas
  module Build
    module Task
      class PublishPDF < Base

        def master_file
          build.master_file
        end

        def build_path
          build.__path__
        end

        def dest_file
          build.dest_file
        end

        def run
          run_pdflatex
          copy_pdf_file_to_dest_dir
        end

        def copy_pdf_file_to_dest_dir
          tmp_file = File.join(build_path, "#{File.basename(master_file, '.tex')}.pdf")
          FileUtils.mkdir_p File.dirname(dest_file)
          FileUtils.copy tmp_file, dest_file
          verbose {
            file = File.join(build_path, "master.log")
            output = `grep "Output written on" #{file}`
            numbers = output.scan(/\((\d+?) pages\, (\d+?) bytes\)\./).flatten
            @page_count = numbers.first.to_i
            "Written PDF in #{dest_file.gsub(build.root, '')} (#{@page_count} pages)".green
          }
        end

        def run_pdflatex
          verbose { "Running pdflatex in #{build_path} ..." }
          Dir.chdir build_path
          `pdflatex #{File.basename(master_file)}`
          `pdflatex #{File.basename(master_file)}`
        end

      end
    end
  end
end
```
assistant