aws.js: fix more options on error