bug which causes the use of iam_role when it shouldn't
more iam_roles. copied from:-

https://github.com/leo-project/s3fs-c/commit/70635574ac47295017ab6546d89440ff12a15f6d
Merge branch 'iam-role' into directory-fix