added targets option to tasks under deploy.before and deploy.after