Make sure to exit after running main().
Only the input directory makes sense for writing tile configs.

So there is no need to specify the output directory explicitly, as the input
directory is used by default if nothing is given.
Confront the user with some details after parsing.
Fix missing os.join().