Fixed a bug where manifests in subdirectories could not be duplicated or renamed properly