giving more control to dir.mk files