Refine the include tag to add dependency when appropriate.