Checking cwd