Fixed file finding issues in mongo-api