FTPPath: change .toAbsolutePath() implementation

We also remove the leading ".." in this case. This allows to factorize code with
.toURI() as well.