Fix bug: Used saved off target pathname because cwd could change.