Quote command substitution to prevent globbing etc. Also simplify error handling.
- Quote command substitution to prevent globbing etc.
- Documentation.
Fix path computation if the user specifies "/" as input/ouput dir