Ensure local directory hierarchy (suspect there is a better way).