fix wrong '//' when extending URLs with an empty path (bnc#885254)

1st '/' is just a separator:
 ftp://user@server	  -> ~user
 ftp://user@server/	 -> ~user
 ftp://user@server//	-> /
Execute install scripts with cwd==/ (bnc#886764)
changes 14.26.1 (26)