Fix part file ignoring stable5

backport of https://github.com/owncloud/core/pull/2594, fixing owncloud/mirall#465 

@schiesbn @karlitschek @icewind1991 @MTGap @tanghus @bartv2 @DeepDiver1975 please test