fix full path leak to source directory when using include tag
added tests for full path leak to source directory when using include tag