Modified script to detect the correct version of xserver-org installed on the system