A little improvment for systems that start the X server with a non-standard uid

Tiny modification to make the script work if the X session has not been started using the current user id