Where exactly is the modification done ? The 'archive' Rake task is probably a good place to do that, as that's what's used to create the upstream release and requires that a VERSION be passed in