Ensure all require statements in output files use relative identifiers

Closes #1.