Fix aws-credentials.json file creation