Fixed problem when generating docs in folders