Fix TypeError exception if sudo password is integer