Moved write_boilerplate() from DirectoryManager to FileManager.