Added support for key-per-region, small fixes for centos and AmazonLin