Pass filehandles directly to export functions

Making them open their own handle complicated testing with no benefit.
Extract default export paths into variables