Add multiple base dir support for server