fixing check for non-existant new line in TURN server output & misc cleanup