only grep if argument provided, fix task ids for deploys