Only import ROOT_PATH if needed

Anaconda is going to drop ROOT_PATH, only try to import it if there is
no getTargetPhysicalRoot method available.