added MapDir function for mapping out etcd directories