Require directories before template interpolation