Convert deprecated Modulefile into metadata.json