fix permissions of scripts