add another file to detect platform type

Amazon Linux distributions may not include a redhat-release file.
Merge pull request #1186 from DataDog/miketheman/amazon_linux_detect

add another file to detect platform type
Log in debug if ignore denied access is true

Fix #866