Revert and correctly fix "#4843 part 2 : The .cmxs files for plugins must have x permission"

This reverts commit 607503b28fca50f4b76b2237d5ca13802b8252fa.