Optimize: NativePath remembers the current work path

Rather than always querying the path with QDir::currentPath() (which
looks somewhat inefficient in the profiler), remember which path
has been set as the current path.