Fixing up logout script.