fixup file permissions for shell scripts