Revert "Take over the path from the current window when the new window is created."

This reverts commit d602a57c0ea7cc59640595a744c3a17f78563ef5.