[TASK] Apply shell lint changes to update_version

Multiple variables require double-quotes to avoid world splitting, path
expansion, and wilcards. Regular expression string assigned to variable
based on recommendation.