Extract sudo installation as separate script