Adjust for the new changes made in packages and add support for appname
Merge pull request #1 from bogdanr/master

Adjust for the new changes made in packages and add support for appname