handle missing current directory errors