Ensure dependencies in metadata