[CB-4118] remove dupe code
[CB-4131] Use relative require paths in FileTransfer plugin.