[d mode] Remove executable flag from mode files

Closes #1830