adjusting platform if statement to detect amazon linux ami