Fix openjdk install error on Amazon Linux

Since Amazon Linux has versions of the form 'YYYY.MM', the check arch check added for Ubuntu > 12.04 currently catches for Amazon Linux too. This is incorrect, so I've firmed up to the check to make sure the platform is Ubuntu.