Fixed an issue with versioning

Fixed problem with determining previous version with new RegEx patterns