build: fix srcdir != builddir
CompletionWords: ~3x faster when working on strings

Tested with short lines: 1.32 seconds with strings, 3.17 seconds with
text iters (2.4x faster).

Tested with long lines: 16.62 seconds with strings, 58.82 seconds with
text iters (3.5x faster).