If export_dir is not given, save on $HOME

See https://bugs.launchpad.net/oq-engine/+bug/1404112. The tests are green: https://ci.openquake.org/job/zdevel_oq-risklib/168/