fixing package build issues in case of missing mongoDB