A little improvment for systems that starts 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