Add region auto-detection for application commands