Fix version check regular expressions in relase script
One was not properly escaping the . and the other one was neither escaping the . nor handling more than one digit numbers.
This results in the release process crashing as soon as a package version number item hits 10 when using the automatic increment.