Make chmod on ADDed files

Fixes #3979