autodetect prod/staging with minionid