Updates directory required by mongoose