Refactored default credentials logic and added support to get credentials from the environment