Improve insert-sudo and add rationalise-dot