fix bad use of path.resolve to make prefs test work