modified the glug-mirror script for automatic codename detection.