Allow the user to change the export-directory, amongst other things.

I'm no Perl master, but everything I changed seems to run safely. Don't have a test-suite to contribute to, so I'll just cross my fingers and hope I don't destroy Everyone's™ text-message backups. (=