fixed pre and post deploy script execution