Fix for properly preparing the documents directory.