added checking of platform root similar to original import code from eclipse, fixes #66