Raise DeploymentError only if script exists