Fixing bug 246, sudo lecture message on command return; fixing logger syntax errror bug on the logfiles