move detection of new format for gem paths into defaults and a separate method