Add clean a detection of current directory removal