Adds the paths to the base path.
The base path (POSIX or Windows).
Rest
Subpaths to attach (POSIX).
The potentially changed path (POSIX).
Adds the paths to the base path.