Few small fixes
- In listing snapshots, the snapshot number does not necessary need to be a number anymore, especially with remote snapshots. So let's put ti in quotes so it is always a string.
- Error our when cleanup is called with invalid arguments.
- Error out early if we can't even create temp directory.
- Error out early if we can't guess the device to work on.
- Move configuration parsing to the end right before commands processing
Edited by Karel Koci