Changed checkout file to use metadata.path first.