Wim contacted me about S3 Download not working when he was using named profiles. After a bit of investigation, the --profile option was not being passed on the head-bucket operation.
The fix is included in the unpacked JS file in this branch: https://github.com/open-automation/switch-aws/tree/fix-profile
Here is a diff: master...fix-profile