Improve bash syntax in mkinitcpio, lsinitcpio and functions

Quote, quote and quote some more.

Most of the issues were found with shellcheck.

Co-authored-by: Isaac Good <IsaacG@users.noreply.github.com>
1 job for github/fork/nl6720/shellcheck in 15 seconds (queued for 2 seconds)