superdesk: added conditions for backend deploy script