Allow docinfo to be in separate directory from content

Resolves #511
Merge pull request #1189 from Mogztter/issue-511

Allow docinfo to be in separate directory from content