Fixes #945, treat package name more as alias for package main module