Set APPEND_TO_VERSION and undo earlier blunt version hacks