mac isfileexists fix for top level resource names