print shorter path ~/a/b/x/...