optimized cwd-status performance a little but not enough