Fixes #5246: Remove group permissions on generated promises with chmod

this is ok, as long a we are on linux only for he server