More robust JSON substitution, do not substitute attribute values of "id"
Cant seem to suppress stdout while leaving stderr (https://jira.mongodb.org/browse/SERVER-1958), so workaround by re-executing the command upon failure.