JBIDE-15383 - unify api for resolving default classpath so restore defaults works properly

Updates as per fred