Accommodates custom package driven publish targets

Ran into issues and had to add this $pkg check to render my custom composer target types.