Ensure source maps are the last line

Failing test and a simple fix.