Added autodetection of desktop environment