Fix RandR detection