Fix relative path resolution inheriting trailing slash flag from cwd.
Fix relative path resolution inheriting trailing slash flag from cwd.

This fixes a bug in resolving relative pathnames when
current working directory is target's root:
cwd is resolved to "/" which has trailing slash flag,
and this flag was inherited by the full resolved pathname,
which led to adding trailing slash to resolved pathname.

Signed-off-by: Oleg Girko <04b88906ba9c139f75fc3f6d7ce1972f78a0f2ee@jolla.com>

ldbox/ldbox,OlegGirko/ldbox,ldbox/ldbox,OlegGirko/ldbox,OlegGirko/ldbox,OlegGirko/ldbox,ldbox/ldbox,ldbox/ldbox,OlegGirko/ldbox,ldbox/ldbox,ldbox/ldbox,OlegGirko/ldbox