R: modified directory structures