Reading the current window path, even when history is disabled