Improved versioning scripts