Added definition of what is a latest AMI
Removed configDirectory argument from processTemplate