Change path check to path combine