Detangling rc scripts