remote: fix rename docs
pathspec: use C guards in header