Remove unnecessary paths from config.