rename base/export.jl => base/exports.jl

Also use printf instead of echo for spawn tests since printf tends
to respect the escape codes.