fixed pathexists