fix amazon linux support