ref(builder): use bash-style substitution

This is already in use at check-repos, which is a fancier way of
stripping the file extension from a string.
Merge pull request #2749 from bacongobbler/the-power-of-bash

ref(builder): use bash-style substitution