make version regex a bit more robust
ensure script starts from known clean state each time
remove cruft before creating release