Properly determine plugin slug based on different inputs