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.