doc: path.join() arguments must be strings

In v0.8, non-string arguments were ignored. v0.10 throws an exception.