Fixes full path leak to source directory when using include tag

Fixes #1950.
Uses the base name for the error output.

/cc @benbalter