Added ability to determine which decode flag to use to support some Macs with openssl base64.