It seems this is already [fixed](https://jira.mongodb.org/browse/SERVER-2011) in mongodump, but not updated in script. Please check.