Macroize xstpncpy.
Improve path building API and update usage.

Implement concat_fnames_buf and append_fname.

Add "restrict" to appropriate arguments.
docs: don't explicitly reference '/'