(#20750) Ec2 git config to lib

Move setup/early/10-ec2_config.rb to lib/utils/vm_control.rb

Tested on Jenkins, works.

Part of (issue 20750) - pull optional steps out of early/ and move to lib.