Add gemset detection and output to cwd segment