Added linenr to dependency + improved dependency detection for tenant-specific scripts