Changing rootPath to serverHome and making it optional