compositor: Verify $XDG_RUNTIME_DIR

Check whether $XDG_RUNTIME_DIR is properly set or not.