Give proper chmod permissions to script files.
Merge pull request #1505 from sylus/7.x-2.x

Give proper chmod permissions to script files.