Detect python executable path for tests too.