Remove the destination path before uploading files

Avoid permission problems in case that the target file exists and the SSH user doesn't have write permissions to it.