Resolves relative segments in the path.
Path to check (POSIX or Windows).
The potentially changed path (POSIX).
Resolves relative segments in the path.