Let srcipt work under Python2 and Python3,
also if the locale is not set to utf8.
Patch from Günter Milde, sort of cherry-pick from 9086db662d47e1b4be93551ccfefa8c1090e040b
2.) Read the PATCH_VERSION from configure.ac too
3.) Ident-text in script
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38804 a592a061-630c-0410-9148-cb99ea01b6c8