Fix cookies not being set to base path