ensuring rights dir exists