add log and runtime directories