auto update CWD for new tabs