local: change ispathpresent types to unsigned in function parameters
main: use ispathpresent()