Apply shellcheck fixes
Context
There are some scripts I noticed that had some issues running under certain conditions, such as some scripts not working if you use zsh
Description
Go through shellchecks recommendations and apply fixes where they make sense