Add a rootDirectory option