Try to detect source dir for cmake ninja builds.