Handle absolute and relative symlinks in paths