Modified build process for better replacement of version