fixed logout bug that would use absolute paths rather than relative paths