Fix shellcheck warnings