Create remote target directory.

If the remote root directory does not (yet) exist, an error is thrown.

This little patch makes sure that the remote root directory is created before an attempt is being made to upload files.