Improve adherence to shell style and conventions
Improve adherence to shell style and conventions

- Send errors to standard error
- Replace several multiple echo statements with HERE document
- Explicitly test for directory existence
- Test for reading rather than file existence
- Use file arguments rather than cat pipeline

gousiosg/github-mirror,gousiosg/github-mirror