Detect epel repository more robustly