Fix sudo os.getenv(XDG_DATA_DIRS) problem