Fix nightly build

Get revision from the 'got_revision' property, not from 'revision'. Using the
'revision' property returned None, which breaks creation of the AMI because a
tag value cannot be None.