check the current directory