change path_empty? to not do full directory listing