Fix bug when receiving more than one file in a stream.

Previously, the console output for each command shared a logger;
each command would try to close the stream.
Make file.relative work properly in templates
Improve console output
Release v1.5.1

- Fix bug when receiving more than one file in a stream.
- Make file.relative work properly in templates
- Improve console output