updated composer script event for setting permissions