I was fighting with the same problem and found the simplest solution ever: get into TWRP recovery mode, go into file manager, select the files having the 'wrong' permissions (i.e. UID and GID set), if you click on them, there is an option set 775. Select that - and you have the files without...