Fix amazon linux dist

replaces #7408. Fixed to use ID. ping @tianon 
didn't know if i should also lowercase these, i kinda like caps, and it will be fixed below idk...