pathexists works