path detection fixes