fix links to source files

* an incorrect base directory was supplied to the HTML writer
* an incorrect base directory was supplied to the check task
* an acceptance test has been implemented