Changes working directory before and after rendering a stencil
Forces trailing slash for dynamic serving of component