fixing issue where version was not grabbed correctly from the versioning directory