Ref T13098. This is mostly for getting sensible results under Windows, hopefully instead of weird mixed paths with both / and \, at least in more cases.
You can pass in several components like array('/path/to/something/', '/thing.c') and they'll be concatenated with exactly one correct separator.