allow makeUriDirectory to work where there is no directory