use regular test for hasbrew, add xdg_runtime_dir export in login shell