Allow docinfo to be in separate directory from content

Resolves #511