ami: fix generating ami lists
Merge pull request #296 from marineam/fixami

ami: fix generating ami lists