Add handling of targets option for custom deploy

Needs recently merged changes to blazing to work