fix detection of installed runtimes