fix copying of multiple logs on ssh server