Fix regression when remote path does not start with a slash