Added function to get the latest version file on dir