I don't think you can rely on this script being in the same place as the VERSION file. IMO, the version should be hard-coded, or added to this script in a build step.