Make it possible always to specify the project directory

This makes the syntax of import/export/delete consistent and simpler.

Also take advantage in the export tests, where we no longer need awkward
cd commands.

In the process, add validation for all project directory arguments.