If export_dir is not given, save on $HOME
Removed an unused import
Merge pull request #111 from gem/missing-export-dir

If export_dir is not given, save on $HOME