paths.c: New logic for ".." cleanup
paths.c: New logic for ".." cleanup

- a new ".." cleaning function, clean_dotdots_from_path(), calls
  the path resolution code and tests if the result is a symlink;
  this is the correct way to clean ".." elements from virtual paths.

OlegGirko/ldbox,OlegGirko/ldbox,ldbox/ldbox,loganchien/scratchbox2,loganchien/scratchbox2,lbt/scratchbox2,loganchien/scratchbox2,h113331pp/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,lbt/scratchbox2,ldbox/ldbox,OlegGirko/ldbox,ldbox/ldbox,ldbox/ldbox,BinChengfei/scratchbox2,madscientist42/scratchbox2,loganchien/scratchbox2,h113331pp/scratchbox2,madscientist42/scratchbox2,BinChengfei/scratchbox2,madscientist42/scratchbox2,h113331pp/scratchbox2,lbt/scratchbox2,madscientist42/scratchbox2,OlegGirko/ldbox,BinChengfei/scratchbox2,OlegGirko/ldbox,madscientist42/scratchbox2,ldbox/ldbox,h113331pp/scratchbox2,lbt/scratchbox2,h113331pp/scratchbox2,loganchien/scratchbox2,BinChengfei/scratchbox2,madscientist42/scratchbox2,lbt/scratchbox2,BinChengfei/scratchbox2,loganchien/scratchbox2,BinChengfei/scratchbox2,h113331pp/scratchbox2