clean mongod path properly #869