fixed x-bits in git

Removed x-bits from non executable files and added x-bits where applicable.

Also see pull request #3185