Upgrade managedotrc script, tidied up dotrc files

Signed-off-by: Ivan Gozali <ivan.gozali@arrayent.com>