Pass index server option with multiple base directories

And a test to boot :)