Fix sudo not installing due to timedir deprecation
keep fallback visudo editor as nano
Merge pull request #3055 from chrisfarms/fix-sudo

Fix sudo installation issue #3027