Add support for Amazon OS

This adds support for Amazon OS. Added test coverage and made sure existing test suite stil passes.