Allows for custom package driven publish targets to be rendered correctly without error

Ran into issues and had to add this $pkg check to render my custom composer target types.
rework PSR2 & package custom target type fix

rework PSR2 & package custom target type fix
Merge pull request #1224 from ChadStrat/patch-5

Accommodates custom package driven publish targets