Set file permissions for sh files

This will make the scripts executable out of the box on *nix platforms.
Merge pull request #1774 from drewrm/fix-script-permissions

Set file permissions for sh files