Run shell scripts through shellcheck

Will revert this exact change. *raises fist at mingw*