Fixed bug with sys.stderr/stdout file handling in logme()