Add commands to preserve directory when making a new tab