more mongorestore fixes

#1064