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