Clean up dependent script references