Added a check for the copy_via configuration switch so that other upload methods than SFTP can be used