fix detect path per @aurimasv 's suggestions