Add support for parametric hw dir.