chdir runs before creates check