fix the permissions of file that are marked unnecessarily as executable(fixes #3659, BP from #1839)

Bug ticket
https://redmine.openpne.jp/issues/1839
BP ticket
https://redmine.openpne.jp/issues/3659