xnew: add support for sub package.
Merge pull request #1 from Gottox/master

xnew: add support for sub package.