Fix executable flags on normal files

fixes #5040