Fixing instance artifact location issue in cartrige agent. Adding a check for multitenancy