better regex for version checks