test global dir exists before running gci on it