Avoid globbing which could return filenames starting with a dash

Thanks to <http://www.shellcheck.net/> for the tip.
Avoid useless use of `cat`

Thanks to <http://www.shellcheck.net/> for the tip.