minor bug fix (scripts permissions)