Update version parsing

Recent tsc prepends a message number; just using fragment regex works
Fix shell escape on windows