Added support for the alias of an aliased package

Fixes: #1332