Some solution found to exclude intermediate rules for directories. No dependencies for directories suported yet.