create a directory structure based on a template