Bug 1134775: Added changes to de/recommision scripts so that we handle potential trailing periods in TT dns names.