Retain directories

This is primarily for the themes directory in DSS, but it could potentially have other uses in the future.