added possibility to use credentials from environment variables (e.g. for use with temporary credentials from assumed role)