Provide doc on directory environments and add test