fix spec stubs for Modulefile/metadata.json detection