clean the version file from the right dir.