Added support for pkg files.