Dynamically build a directory