Fix main linkage for relative identifiers

Previously, a package with a "main" property that started with "./" would be linked incorrectly.