fix permissions on scripts