only copy log files if they are not empty