Now exits with an error code if the packing failed. Also fixed a bug where it wasn't
heeding the command-line arguments.