add amazonlinux support
Merge pull request #235 from ryuzee/amazonlinux-fix

add amazonlinux support