Fix error code when smbclient puts a file over an existing directory