Fix #1005: v1.0.0: Valid import is considered unused

Do not use 'main' package for populating imports map