added check to ensure previous manifest file exists before creating a symlink to it